package com.googlecode.spruce.remote;

import java.util.Date;

import com.googlecode.spruce.core.ServiceCheckResult;

public final class ServiceCheckResultAdapter implements ServiceCheckResult
{
    /**
     * Serial ID
     */
    private static final long serialVersionUID = -2826912922083132274L;

    private final String hostName;
    private final String checkName;
    private final Date date;
    private final int value;
    private final String message;

    public ServiceCheckResultAdapter(final String checkName, final String hostName, final int value,
            final String message)
    {
        this.date = new Date();
        this.hostName = hostName;
        this.checkName = checkName;
        this.value = value;
        this.message = message;
    }

    @Override
    public String getServiceCheck()
    {
        return this.checkName;
    }

    @Override
    public String getHost()
    {
        return this.hostName;
    }

    @Override
    public Date getDate()
    {
        return this.date;
    }

    @Override
    public int getValue()
    {
        return this.value;
    }

    @Override
    public String getMessage()
    {
        return this.message;
    }

}
